<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MQ</title>
<link href="../css/mq.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	window.onload = setState;
	
	function setState(){
   		var state= document.getElementById("state").value;
   		if(state==1)
   			document.getElementById("state_yes").checked="checked";
   		else
   			document.getElementById("state_no").checked="checked";
   			
   		var options=document.getElementById("companyTypeSelect").options;
   		var companyType=document.getElementById("companyType");
   		for(var i=0 ;i<options.length;i++){
   			if(options[i].value==companyType.value){
   				options[i].selected=true;
   				break ; 
   			}
   		}
	} 
</script>
</head>




<body>
	<div id="write">
	<form action="editSubAdminUser.do" method="post" name="/agent">
	    <h4>公司信息</h4>
<table id="mailInfo" style="border-top:#dddddd solid 1px; border-bottom:#dddddd solid 1px" frame=below rules=rows  border color="#FFFFFF" width="100%" border="1" cellspacing="0" cellpadding="4" >
  <tr>
    <td width="100px" class="tdstyle" >登录名：</td>
    <td><input type="hidden" name="adminUser.id" value="${adminUser.id }" />
    <input type="hidden" name="adminUser.adminType" value="${adminUser.adminType }" />
    <input name="adminUser.adminUserName" type="text" value="${adminUser.adminUserName }" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td  class="tdstyle" >公司名：</td>
    <td><input name="adminUser.companyName" type="text" value="${adminUser.companyName }" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td  class="tdstyle" >公司电话：</td>
    <td><input name="adminUser.telephone" type="text" value="${adminUser.telephone }" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td  class="tdstyle" >联系人：</td>
    <td><input name="adminUser.contact" type="text" value="${adminUser.contact }" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td  class="tdstyle" > 联系人手机：</td>
    <td><input name="adminUser.mobile" type="text" value="${adminUser.mobile }" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td  class="tdstyle" >所在省：</td>
    <td><input name="adminUser.province" type="text" value="${adminUser.province }" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td  class="tdstyle" >所在市：</td>
    <td><input name="adminUser.city" type="text" value="${adminUser.city }" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td  class="tdstyle" >地址：</td>
    <td><input name="adminUser.address" type="text" value="${adminUser.address }" class="inputstyle-240px" /></td>
  </tr>
  <tr>    
    <td  class="tdstyle" >公司类别：</td>
    <td><select name="adminUser.companyType" id="companyTypeSelect">
    		<option value="酒店">酒店</option>
    		<option value="饭店">饭店</option>
    		<option value="宾馆">宾馆</option>
    		<option value="婚庆公司">婚庆公司</option>
    		<option value="摄影摄像公司">摄影摄像公司</option>
    		<option value="礼品公司 ">礼品公司 </option>
    		<option value="个人">个人</option>
    		<option value="其他 ">其他 </option>
    </select><input type="hidden" id="companyType" value="${adminUser.companyType }" /> </td>
  </tr>
  <tr>
    <td  class="tdstyle" >状态：</td>
    <td><input type="radio" name="adminUser.state" value="1" id="state_yes"/>是&nbsp;&nbsp;<input type="radio"  value="0" name="adminUser.state" id="state_no"/>否
    	<input type="hidden" id="state" value="${adminUser.state }" /> </td>
  </tr>
   <tr>
    <td  class="tdstyle" >描述：</td>
    <td>    <input name="adminUser.description" type="text" value="${adminUser.description }" class="inputstyle-240px" /></td>
  </tr>

</table>
	<div class="text_margin1">
		<input  type="submit" value=" 发 送 "  class="buttonstyle-2word"/>
		<input  type="reset" value=" 重 置 " class="buttonstyle-2word" /></div>
</form>
</div>

	<!------------------------------------------------------------------ -->
<!--------------------------------------- -->
</body>
</html>